package com.resrun.vo.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import java.io.Serializable;
import java.util.List;

/**
 * @Description: SealSignRequest
 * @Package: com.resrun.controller.vo.request
 * @ClassName: SealSignRequest
 * @copyright 北京资源律动科技有限公司
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("签署-请求对象")
public class SignatureSignRequest implements Serializable {

    @NotNull(message = "用户ID不能为空")
    @Range(min = 1, message = "用户ID不正确")
    private Long userId;

    @NotNull
    @Range(min = 1, max = 2, message = "签署类型不正确")
    @ApiModelProperty("签署类型，1位置签署，2关键字签署")
    private Integer signType ;

    @NotBlank(message = "签名信息不能为空")
    @ApiModelProperty("个人签章base64")
    private String signature;

    @ApiModelProperty("个人签章位置")
    private List<PositionRequest> positionList;

    @ApiModelProperty("个人签章关键字")
    private String keyword;

}